import { _decorator, Component, Node } from 'cc'
import { EnemyManager } from '../../Base/EnemyManager'
import { IEntity } from '../../Levels'
import { IronSkeletonStateMachine } from './IronSkeletonStateMachine'
const { ccclass, property } = _decorator

/**
 * Predefined variables
 * Name = IronSkeletonManager
 * DateTime = Fri Jul 22 2022 11:17:01 GMT+0800 (中国标准时间)
 * Author = Zero_Y
 * FileBasename = IronSkeletonManager.ts
 * FileBasenameNoExtension = IronSkeletonManager
 * URL = db://assets/Scripts/IronSkeleton/IronSkeletonManager.ts
 * ManualUrl = https://docs.cocos.com/creator/3.4/manual/zh/
 *
 */

@ccclass('IronSkeletonManager')
export class IronSkeletonManager extends EnemyManager {
  async init(params: IEntity) {
    this.fsm = this.addComponent(IronSkeletonStateMachine)
    await this.fsm.init()

    super.init(params)
  }
  // 解绑事件
  onDestroy() {
    super.onDestroy()
  }
}
